<?php 
require_once './include.php';
//var_dump($_SESSION);
//echo $_SESSION;
$powerId = $_SESSION['powerId'];
//var_dump($powerId);

//权限判断，是否可以进行用户管理
if($powerId==1){
    $status = "display:none";
}else if($powerId==0){
    $status = "display:block";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>长春市旅游服务及管理系统</title>
    <link href="./css/myhome.css" rel="stylesheet" type="text/css" /> 
</head>
	
<body>
    <div id="top">
		<div id="top_logo">
			<img alt="logo" src="images/旅游景点.png" width="65" height="65" style="vertical-align:middle;">
            <span>长春市旅游服务及管理系统</span>
		</div>
        <div id="menu-group" class="menu-group">
            <div id="top_nav">                
                <!-- #region menuGroup-->
                <div class="menu" onclick="gotoOverview()">
                    <i class="menu-item"><img class="btn_icon" src="images/首页概况.png"/><span>首页概况</span></i>
                </div>
                <b></b>
                <div class="menu" onclick="gotoG1()">
                    <i class="menu-item"><img class="btn_icon" src="images/信息概览.png"/><span>景点信息概览</span></i>
                </div>
                <b></b> 
                <div class="menu" onclick="gotoG2()">
                    <i class="menu-item"><img class="btn_icon" src="images/在线查询.png"/><span>景点查询</span></i>
                </div>
                <div class="menu" onclick="gotoG2()">
                    <i class="menu-item"><img class="btn_icon" src="images/37_住宿.png"/><span>住宿查询</span></i>
                </div>
                <div class="menu" onclick="gotoG2()">
                    <i class="menu-item"><img class="btn_icon" src="images/4路径分析-copy.png"/><span>最佳路径查询</span></i>
                </div>
                <b></b>
                <div class="menu" style="<?php echo $status;?>" onclick="gotoG3()">
                    <i class="menu-item"><img class="btn_icon" src="images/动态-更新.png"/><span>动态更新</span></i>
                </div>
                <b></b>
                <div class="menu" style="<?php echo $status;?>" onclick="gotoG4()">
                    <i class="menu-item"><img class="btn_icon" src="images/用户管理.png"/><span>用户管理</span></i>
                </div>
                <b></b>                 
                <!-- #endregion -->
            </div>
        </div>
		<div id="top_links">  
                      
			<div id="top_close">
            	<a class="icon iconfont" href="javascript:void(0);" onclick="logout();" target="_parent"><img class="btn_icon" src="images/logout.png"/></a>            	
			</div>
            <div id="top_op">
                <span class="welcome-word">
                    欢迎您！&nbsp;&nbsp;
                    <?php
                        if(isset($_SESSION['adminName'])){
                            echo $_SESSION['name'];
                        }
                    ?>
                </span>
                <a href=""><i></i></a>
            </div>            
		</div>
	</div>
    
    <script>
        //#region 退出系统
        /**退出系统**/
        function logout(){
            if(confirm("您确定要退出本系统吗？")){
                window.location.href = "./login.php";               
            }
        }  
        //#endregion

        function gotoOverview(){
            document.getElementById('MainPage').src = "./Overview/index.php";
        }
        function gotoG1(){
            document.getElementById('MainPage').src = "./Group1st/sightList.php";
        }
        function gotoG2(){
            document.getElementById('MainPage').src = "./Group2nd/featureQuery.html";
        }
        function gotoG3(){
            document.getElementById('MainPage').src = "./Group3rd/featureUpdate.html";
        }
        function gotoG4(){
            document.getElementById('MainPage').src = "./Group4th/userList.php";
        }
    </script>   
    <div id="main">
      	<iframe name="right" id="MainPage" src="./Overview/index.php" frameborder="no" width="100%" height="100%" allowtransparency="true"/>
    </div>
</body>
</html>


